<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h3">编辑主营线路</h1>
</div>

<div class="wrapper-sm">
    <uib-tabset active="4" class="tab-container" ng-init="steps={percent:20, step1:false, step2:false, step3:false, step4:true, step5:false}">
        <uib-tab heading="基本信息" active="steps.step1" select="steps.percent=20" ui-sref="app.carrier.carrierManagentEdit"></uib-tab>
        <uib-tab heading="资质信息" active="steps.step2" disabled="step1.$invalid" select="steps.percent=35" ui-sref="app.carrier.carrierAttachment"></uib-tab>
        <uib-tab heading="账户信息" active="steps.step3" disabled="step2.$invalid" select="steps.percent=55" ui-sref="app.carrier.carrierBankEdit"></uib-tab>
        <uib-tab heading="主营线路" index="4" active="steps.step4" disabled="step3.$invalid" select="steps.percent=75" ui-sref="app.carrier.carrierRouteManagent">
            <form name="step4" class="form-horizontal form-validation " novalidate ng-controller="carrierRouteManagentController">
                <uib-progressbar value="steps.percent" class="progress-xs" type="success"></uib-progressbar>
                <div class="wrapper-sm">
                    <div class="panel panel-default">
                        <div class="panel-heading font-bold"></div>
                        <div class="panel-body">

                            <label class="control-label pull-left m-l m-r-lg">承运起始地</label>
                            <div class="col-md-3 ">
                                <div class="form-group mar15 form-inline">
                                    <select id="route_startProvince" class="form-control  input-sm" required name="startProvince" ng-change="changeStarProvince()" ng-model="startProvinceCode" ng-options="x.value as x.text for x in provinceList" required="true">
                                        <option value="">请选择</option>
                                    </select>

                                    <select id="route_startCity" class="form-control required input-sm" name="startCity" ng-model="startCityCode" ng-change="changeStartCity()" ng-options="x.value as x.text for x in startCityList" required="true">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>

                            <label class="control-label pull-left m-l m-r-lg">承运目的地</label>
                            <div class="col-md-3 ">
                                <div class="form-group mar15 form-inline">
                                    <select id="route_endProvince" class="form-control required input-sm" name="popupProvince" ng-change="changeEndProvince()" ng-model="endProvinceCode" ng-options="x.value as x.text for x in provinceList" required="true">
                                        <option value="">请选择</option>
                                    </select>

                                    <select id="route_endCityCode" class="form-control required input-sm" name="popupCity" ng-model="endCityCode" ng-change="changeEndCity()" ng-options="x.value as x.text for x in endCityList" required="true">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>

                            <button class="btn m-b-xs btn-sm btn-info btn-addon " id="addRouteLine" disabled=true ng-click="addRouteLine()"><i class="fa fa-plus" id="add"></i>添加</button>

                        </div>
                    </div>

                    <div class="panel panel-default">
                        <div class="panel-heading">
                            主营线路列表
                        </div>
                        <div class="table-responsive">
                            <div ui-grid="gridOptions" ui-grid-pagination ui-grid-auto-resize>
                                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
                            </div>
                        </div>

                    </div>
                </div>
            </form>

        </uib-tab>
        <!--<uib-tab heading="所属车辆" active="steps.step5" select="steps.percent=100" ui-sref="app.carrier.carrieCarEdit"></uib-tab>-->
    </uib-tabset>
</div>